package com.hyyt.shopjsp.util.upload;

/**
 * Copyright (c) 2017 ShopJsp. All Rights Reserved.
 * ============================================================================
 * 版权所有 2011 - 今 北京华宇盈通科技有限公司，并保留所有权利。
 * ----------------------------------------------------------------------------
 * 提示：在未取得SHOPJSP商业授权之前，您不能将本软件应用于商业用途，否则SHOPJSP将保留追究的权力。
 * ----------------------------------------------------------------------------
 * 官方网站：http://www.shopjsp.com
 * ============================================================================
 *
 * @Description
 * @Location com.hyyt.shopjsp.util.upload.UploadResult
 * @author 张丁方
 * @CreateTime 2017-03-23 17:34
 */
public class UploadResult {
    private String fileUrl;   //上传文件后的，服务器地址
    private boolean success;            //上传成功标识
    private String msg;                   // 上传后返回消息，主要用于失败消息

    public UploadResult() {}

    public UploadResult(boolean success, String fileUrl) {
        this.success = success;
        this.fileUrl = fileUrl;
    }
    public UploadResult(boolean success, String fileUrl, String msg) {
        this.success = success;
        this.fileUrl = fileUrl;
        this.msg = msg;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
